package com.example.zheng.qq.controller;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by zheng on 17-4-26.
 * 建表
 */
public class CreateTable  extends SQLiteOpenHelper{
    public static final  String CREATE_USER="create table user(" +
            "uname text primary key," +
            "pass text," +
            "picture text)";

    public CreateTable(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }


    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_USER);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
